package org.haq.bae;

import com.vaadin.Application;
import com.vaadin.ui.Window;
import org.haq.bae.ui.panel.design.ScriptCodePanel;
import org.haq.bae.ui.shell.DesignShell;

/**
 * DesignApp
 *
 * @author abil
 *         Created Date: 4/22/12 Time: 9:46 PM
 */

public class DesignApp extends Application {

    private final DesignShell designShell = new DesignShell();

    @Override
    public void init() {
        Window mainWindow = new Window("Design Application");
        setTheme("chameleon-dark");
        mainWindow.getContent().setSizeFull();
        mainWindow.addComponent(designShell);
        setMainWindow(mainWindow);

        designShell.getTabSheet().addTab(new ScriptCodePanel(), "Script");

    }
}
